package com.fdd.spring.aop.aspectj;

import org.springframework.stereotype.Component;

@Component
public class SmartDog implements SmartAnimalable {
    @Override
    public double getSum(double i, double j) {
        double res = i + j;
//        double d = 10 / 0;
        System.out.println("方法内部打印result = " + res);
        return res;
    }

    @Override
    public double getSub(double i, double j) {
        double res = i - j;
        System.out.println("方法内部打印result = " + res);
        return res;
    }
}
